import {defineConfig} from 'umi';
import routes from './routes'

export default defineConfig({
  nodeModulesTransform: {
    type: 'none',
  },
  routes: routes,
  fastRefresh: {},
  title: 'Demo',
  favicon: '/favicon.ico',
  proxy: {
    '/admin': {
      'target': 'http://localhost:8501',
      'changeOrigin': true,
      'pathRewrite': {'^/api': ''},
    },
  },
});
